package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("demo.txt");
        fos.write(1);
        fos.write(2);
        System.out.println("写出完毕");
        fos.close();


        int a=97;
        System.out.println(Integer.toBinaryString(a));
    }
}
